
package com.mu.rai.services;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for baudRate.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="baudRate">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="BR2400"/>
 *     &lt;enumeration value="BR4800"/>
 *     &lt;enumeration value="BR9600"/>
 *     &lt;enumeration value="BR19200"/>
 *     &lt;enumeration value="BR38400"/>
 *     &lt;enumeration value="BR57600"/>
 *     &lt;enumeration value="BR115200"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "baudRate")
@XmlEnum
public enum BaudRate {

    @XmlEnumValue("BR2400")
    BR_2400("BR2400"),
    @XmlEnumValue("BR4800")
    BR_4800("BR4800"),
    @XmlEnumValue("BR9600")
    BR_9600("BR9600"),
    @XmlEnumValue("BR19200")
    BR_19200("BR19200"),
    @XmlEnumValue("BR38400")
    BR_38400("BR38400"),
    @XmlEnumValue("BR57600")
    BR_57600("BR57600"),
    @XmlEnumValue("BR115200")
    BR_115200("BR115200");
    private final String value;

    BaudRate(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static BaudRate fromValue(String v) {
        for (BaudRate c: BaudRate.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
